package tech.aistar.corejava.day08;

import com.sun.org.apache.xpath.internal.SourceTree;

/**
 * Created by 豆梦寒 on 2019/7/24.
 */
public class TestShape {
    public static void main(String[] args) {
//        Shape s = new Shape() {
//            //匿名内部类
//            @Override
//            public double girth() {
//                return 0;
//            }
//        }
        Shape s = new Rect(10,15);
        System.out.println(s.girth());


    }

}
